<?php


class D_Http {

	public static function get($url){
		$config = array(
				'keepalive'     => true,
    			'sslusecontext' => true,
				'timeout' => 60
			);
		
		$client = new Zend_Http_Client($url,$config);
		//$response = $client->request();
		//echo $response->getHeadersAsString();
		
		//$client->setUri($url);
		$response = $client->request();
		return $response->getBody();
	}
	
	public static function request($url){
		$config = array(
				'keepalive'     => true,
				'sslusecontext' => true,
				'timeout' => 90
		);
	
		$client = new Zend_Http_Client($url,$config);
	
		return $client->request();
	}
	
	
}

?>